export function getMomentsList(user_id,page = 1, limit = 10) {
  return uni.$http('/home/im/index', 'GET', {user_id, page, limit }).then(res => res.data.data)
}

// 点赞动态
export function likeMoment(momentId, userId) {
  return uni.$http(`/home/im/like/${momentId}`, 'POST', {
    user_id: userId
  })
}

// 评论动态
export function commentMoment(momentId, userId, content) {
  return uni.$http('/home/im/comment', 'POST', {
    moment_id: momentId,
    user_id: userId,
    content: content
  })
}

// 发布朋友圈
export function postMoment(data) {
  return uni.$http('/home/im/sendmoment', 'POST', data)
}
